{loop $data $n $r}

<div class="grid">
		<div class="imgholder">
		<a href="{$r[url]}" target="_blank">
		<img src="{$r[thumb]}"  width="{$width}"  alt="{$r[title]}"/></a>		
		</div>
		<strong>{str_cut($r[title], $titlelen,'')}</strong>
		<p>{str_cut($r[author], 15,'')}</p>
		<div class="meta">{date($dateformat,$r[inputtime])}</div>
	</div>

{/loop}